<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>学生首页</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome/css/font-awesome.min.css">
    <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
</head>
<body>
<div class="container">
    <h1 class="mt-5">欢迎，<span id="studentName"></span>！</h1>

    <!-- 导航菜单 -->
    <div class="mt-4 mb-4">
        <ul class="nav nav-pills">
            <li class="nav-item">
                <a class="nav-link active" href="#">首页</a>
            </li>
            <li class="nav-item">
                <a class="nav-link" id="viewExamsLink" href="${pageContext.request.contextPath}/student/examList">查看试卷</a>
            </li>
            <li class="nav-item">
                <a class="nav-link" id="viewExamRecords" href="${pageContext.request.contextPath}/student/viewExamRecords">查看考试记录</a>
            </li>
        </ul>
    </div>

    <!-- 学生基本信息 -->
    <div class="card mt-4">
        <div class="card-header">
            <h4>学生基本信息</h4>
        </div>
        <div class="card-body">
            <p><strong>学号：</strong><span id="studentId"></span></p>
            <p><strong>姓名：</strong><span id="studentNameInfo"></span></p>
            <p><strong>专业：</strong><span id="studentMajor"></span></p>
        </div>
    </div>

</div>
<script src="${pageContext.request.contextPath}/static/js/student/home.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>


</body>
</html>
